# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=morxbrute
pkgver=1.01
pkgrel=10
groups=('blackarch' 'blackarch-cracker')
pkgdesc='A customizable HTTP dictionary-based password cracking tool written in Perl.'
url='http://www.morxploit.com/morxbrute/'
arch=('any')
license=('GPL3')
depends=('perl')
source=("http://web.archive.org/web/20160418003417/http://www.morxploit.com/morxtools/morxbrute/MorXBrute.v$pkgver.tgz")
#source=("http://www.morxploit.com/morxtools/morxbrute/MorXBrute.v$pkgver.tgz")
sha512sums=('ed470cad8f6da75507d1014c7f0ef3d3f4ca56d25426bf26475d574d2fe9b6130eb394ed965103b0d2640186222718ca37a5ba9cf45a26d727523376337a98ec')

package() {
  cd MorXBrute

  install -dm 755 "$pkgdir/usr/bin"
  install -dm 755 "$pkgdir/usr/share/$pkgname"
  install -dm 755 "$pkgdir/usr/share/doc/$pkgname"

  cp -a --no-preserve=ownership payloads "$pkgdir/usr/share/$pkgname"

  install -m 755 MorXBrute.pl "$pkgdir/usr/share/$pkgname"
  install -m 644 README "$pkgdir/usr/share/doc/$pkgname"

  ln -s "/usr/share/$pkgname/MorXBrute.pl" "$pkgdir/usr/bin/$pkgname"
}

